Skip to content

Move git notes fetching from run-task to the decision task and make them optional#935

Merged
Eijebong merged 1 commit intotaskcluster:mainfrom
Eijebong:make-notes-optional
Apr 16, 2026
Merged

Move git notes fetching from run-task to the decision task and make them optional#935
Eijebong merged 1 commit intotaskcluster:mainfrom
Eijebong:make-notes-optional

Conversation

@Eijebong
Copy link
Copy Markdown
Contributor

@Eijebong Eijebong commented Apr 15, 2026

This removes the concept of extra refs fetching as it was introduced for this feature alone as it turned out to be quite complex to support if we wanted notes to be optional. The main issue it's fixing is being able to run decision tasks off of repos that don't have that notes branch at all.

@Eijebong Eijebong requested a review from a team as a code owner April 15, 2026 13:59
@Eijebong Eijebong requested a review from bhearsum April 15, 2026 13:59
Comment thread src/taskgraph/run-task/run-task Outdated
@Eijebong Eijebong force-pushed the make-notes-optional branch from 4d26abc to b644e55 Compare April 15, 2026 14:10
Comment thread src/taskgraph/run-task/run-task Outdated
@Eijebong Eijebong force-pushed the make-notes-optional branch 2 times, most recently from 0c9f3b1 to 7031852 Compare April 15, 2026 14:16
@Eijebong
Copy link
Copy Markdown
Contributor Author

(I dropped the taskcluster.yml change and pushed empty notes to my fork to get CI green, I'll re-add the ? change in a followup and delete notes from my fork to test properly)

Comment thread src/taskgraph/run-task/run-task Outdated
@Eijebong Eijebong force-pushed the make-notes-optional branch 2 times, most recently from 42d2a60 to 2b20361 Compare April 16, 2026 09:17
@Eijebong Eijebong changed the title Allow extra refs to be marked as optional in run-task Move git notes fetching from run-task to the decision task and make them optional Apr 16, 2026
Comment thread src/taskgraph/util/vcs.py
revision = revision or "HEAD"
try:
return self.run("notes", f"--ref={note}", "show", revision).strip()
self.run("fetch", remote, f"{note}:{note}")
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One downside of doing it here is that we lose the retry path completely

Copy link
Copy Markdown
Contributor

@jcristau jcristau Apr 16, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And we call fetch on each get_note instead of just once? (Granted we call get_note just once anyway)

Comment thread src/taskgraph/util/vcs.py Outdated
…hem optional

This removes the concept of extra refs fetching as it was introduced for
this feature alone as it turned out to be quite complex to support if we
wanted notes to be optional. The main issue it's fixing is being able to
run decision tasks off of repos that don't have that notes branch at
all.
@Eijebong Eijebong added the BREAKING CHANGE Backwards incompatible request that will require major version bump label Apr 16, 2026
@Eijebong Eijebong force-pushed the make-notes-optional branch from 2b20361 to a9cb7ca Compare April 16, 2026 09:32
@Eijebong Eijebong enabled auto-merge (squash) April 16, 2026 09:34
@Eijebong Eijebong merged commit 9075117 into taskcluster:main Apr 16, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BREAKING CHANGE Backwards incompatible request that will require major version bump

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants